package kr.hkit.androidcomplete02.ch12;

import kr.hkit.androidcomplete02.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch12_Amain extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch12_amain);
	}
	
	public void mOnClick(View v){
		Intent intent = null;
		
		switch(v.getId()){
		case R.id.ch13_btn01:
			intent = new Intent(this, ListViewArrayList.class);
			break;
		case R.id.ch12_btn02:
			intent = new Intent(this, ListViewResource.class);
			break;
		case R.id.ch12_btn03:
			intent = new Intent(this, ListViewAddDel.class);
			break;
		case R.id.ch12_btn04:
			intent = new Intent(this, ListViewAddDelMultiple.class);
			break;
		case R.id.ch12_btn05:
			intent = new Intent(this, CustomAdapterView.class);
			break;
		case R.id.ch12_btn06:
			intent = new Intent(this, CustomAdapterView02.class);
			break;
		case R.id.ch12_btn07:
			intent = new Intent(this, ListActivityEx.class);
			break;
		case R.id.ch12_btn08:
			intent = new Intent(this, ListActivityEx02.class);
			break;
		case R.id.ch12_btn09:
			intent = new Intent(this, SpinnerEx.class);
			break;
		case R.id.ch12_btn10:
			intent = new Intent(this, GridViewEx.class);
			break;
		case R.id.ch12_btn11:
			intent = new Intent(this, CursorAdapterEx.class);
			break;
		case R.id.ch12_btn12:
			intent = new Intent(this, ListOfViews.class);
			break;
		}
		
		startActivity(intent);
	}
}
